package lab02.Test35;

public class test {
    public static void main(String[] args) {
        Manager m=new Manager("王",5000);
        Salesman s=new Salesman("李",3000,500,10);
        Worker w=new Worker("刘",25,150);
        System.out.println("经理："+m.getName()+"工资"+m.computeSalary());
        System.out.println("销售员："+s.getName()+"工资"+s.computeSalary());
        System.out.println("工作人员："+w.getName()+"工资"+w.computeSalary());
    }
}
